package org.shj.pattern.builder

class HuaWei extends ProductLine{
  val product: Product = new Product
  
  def installCore ={
    product.addPart("华为内核")
  }
  
  def installGPS{
    product.addPart("南极星")
  }
  
  def installBattery{
    product.addPart("5000MA电池")
  }
  
  def installShell{
    product.addPart("华为外壳")
  }
  
  def getProduct : Product = {
    product
  }
}